[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 B2W(IEXP1,IEXP2) (INTEGER)

 Function
  Convert two byte-sized arguments into a single word-sized argument.

 Syntax
  B2W(iexp1,iexp2)

   iexp1 = Any integer expression with a value between 000h and 0FFh.
   iexp2 = Any integer expression with a value between 000h and 0FFh.

 Return Type & Value
  INTEGER
  Returns a word-sized value between 00000h and 0FFFFh.  The
  return value is computed by the following expression:  iexp1+iexp2*0100h.
  **** or maybe (IEXP1*0100h+IEXP2) *****

 Remarks
  It is sometimes necessary to combine two bytes together to form a word.
  This function simplifies that process, and speeds it up a little as well
  by doing it internally instead of requiring you to perform the
  arithmetic yourself.  It can be especially useful when used with the
  DOINTR statement.

 Examples
  ' This line will display 25 *'s at the current screen position
  ' NOTES:  10h is the Video BIOS interrupt
  '         B2W(ASC("*"),09h) is the char to print and the service number
  '         0007h is video page 0, attribute 7
  '         25 is the number of characters to print
  '         All others are 0 and not needed for this function
  DOINTR 10h,B2W(09h,ASC("*")),0007h,25,0,0,0,0,0,0

See Also: DOINTR
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson